package com.mengmablog.blog.dao;

import com.mengmablog.blog.entity.Users;
import org.apache.ibatis.annotations.Param;

public interface UsersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    Users loginByUserNameAndPd(@Param("username") String username, @Param("md5PassWord") String md5PassWord);

    int updateByReset(@Param("username") String username, @Param("oldPassword") String oldPassword, @Param("newPassword") String newPassword);

}